<?php ?>
<div class="contentmanager" >
<?php 
	if(!empty($popup) ){
		echo $popup;
	}
?>
<div class="cm_title_bar">
<h4 class="contentManagerTitle">Editable Content</h4>
<div class="cm_controls">
<script type="text/javascript">
function openPopUp(){
	$('#popup_<?php echo $id; ?>').lightbox_me({
        centered: true, 
        closeClick:false
        });
}
$(document).ready(function() {
	$("#<?php echo $id; ?>_popupbutton").click(function(e){
		openPopUp();
		e.preventDefault();
	  });
	});
</script>
<input type="button" id="<?php echo $id; ?>_popupbutton" class="cm_add" value="+" title="Click to add a new content section" /></div>
</div>
<div class="cm_all_content" >

<?php if (!empty($content_sections)) { ?>
<div class=''>
	<?php 
	foreach( $content_sections as $content ){
		echo $content;
	}
	?>
</div>
<?php }?>
</div> 
</div>